package com.mxfcode.back.service;

import com.mxfcode.back.dto.PermissionDTO;
import com.mxfcode.back.dto.UserSearchDTO;
import com.mxfcode.bbs_common.response.PageDataResult;
import com.mxfcode.entity.TSPermission;
import com.mxfcode.entity.TSUser;

import java.util.List;
import java.util.Map;

/**
 * @接口名 PermissionService
 * @描述 TODO
 * @作者 mxf
 * @创建日期 2021-03-05 14:01
 **/
public interface UserService {


    PageDataResult getUserList(UserSearchDTO userSearch, Integer pageNum, Integer pageSize);

    Map<String, Object> addUser(TSUser user);

    Map<String, Object> updateUser(TSUser user) throws Exception;

    Map<String, Object> delUser(String id, Integer status);

    Map<String, Object> recoverUser(String id, Integer status);

    Map<String, Object> update(TSUser user);
}
